package cn.hl.hm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.hl.hm.entity.backstage.BackStageRoleMenu;

public interface BackStageRoleMenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BackStageRoleMenu record);

    int insertSelective(BackStageRoleMenu record);

    BackStageRoleMenu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BackStageRoleMenu record);

    int updateByPrimaryKey(BackStageRoleMenu record);
    
    @Select("select id as id from t_backstage_role_menu  where menu_id =#{menuId} and role_id = #{roleId}")
    List<BackStageRoleMenu> selectByIds(@Param("menuId")Integer menuId,@Param("roleId")Integer roleId);
    
    
    @Select("select id as id,menu_id as menuId,role_id as roleId from t_backstage_role_menu")
    List<BackStageRoleMenu> selectAllRoleMenus();
    
    List<BackStageRoleMenu> selectInfo(BackStageRoleMenu record);
    
}